import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'
import student from './modules/student'
import school from './modules/school'
import tagsView from './modules/tagsView'
import permission from './modules/permission'
import settings from './modules/settings'
import getters from './getters'
//import VuexPersistence from 'vuex-persist'
Vue.use(Vuex)
// const vuexLocal = new VuexPersistence({
//   storage: window.localStorage
// })
const store = new Vuex.Store({
  modules: {
    app,
    user,
    student,
    school,
    tagsView,
    permission,
    settings
  },
  getters,
  //数据持久化存储
  //plugins: [vuexLocal.plugin]
})

export default store
